package org.jeecg.modules.relation.relclssubtearoom.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.common.basevo.ColumnsVo;
import org.jeecg.modules.relation.relclassstudent.vo.RelClassesAndStudentsVO;
import org.jeecg.modules.relation.relclssubtearoom.entity.RelClassSubjectTeacher;
import org.jeecg.modules.relation.relclssubtearoom.vo.RelClassSubjectTeacherVO;

/**
 * @Description: rel_class_subject_teacher
 * @author: baochangrong
 * @Date:   2022-02-16
 * @Version: V1.0
 */
public interface RelClassSubjectTeacherMapper extends BaseMapper<RelClassSubjectTeacher> {
    List<RelClassSubjectTeacherVO> queryAllList(@Param("vo") RelClassSubjectTeacher relClassSubjectTeacher, @Param("tenantId") String tenantId);

    /**
     * 查询老师-科目-班级-教室的分配关系，应用与科目-老师的联动下拉框
     * @param relClassSubjectTeacherVO
     * @param queryParam,其中querySubjectSysDictFlag 是否需要查询科目的字典码：例如课间操、眼保健操等字典码
     * @return
     */
    List<RelClassSubjectTeacherVO> queryTeacherClassListBySubject(@Param("relClassSubjectTeacherVO") RelClassSubjectTeacherVO relClassSubjectTeacherVO, @Param("queryParam") Map<String,String> queryParam);

    /**
     * 动态查询页面显示的列：科目列，动态查询显示
     * @param relClassSubjectTeacherVO
     * @param queryParam
     * @return
     */
    List<ColumnsVo> getColumnsList(@Param("relClassSubjectTeacherVO") RelClassSubjectTeacherVO relClassSubjectTeacherVO, @Param("queryParam") Map<String,String> queryParam);

    int insertUpgradeRelClassSubjectTeacher(@Param("relClassSubjectTeacherVO") RelClassSubjectTeacherVO relClassSubjectTeacherVO);


}
